﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Quản_Lý_Thư_Viện
{
    public partial class frmSachDaMuon : Form
    {
        public frmSachDaMuon()
        {
            InitializeComponent();
        }
        CTPMcontrol control = new CTPMcontrol();
        private void frmSachDaMuon_Load(object sender, EventArgs e)
        {
            dgv_sachdamuon.DataSource = control.sachdamuon();
        }
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == (Keys.Escape))
            {
                this.Close();
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }      

        
    }
}
